package com.bootx.pojo;



import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.ArrayList;
import java.util.List;

/**
 * @author black
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class RedPackageInfo {

    private Long batchId;

    private Integer count;

    private Double amount;

    private List<RedPackageItem> redPackageItemList = new ArrayList<>();

    public Long getBatchId() {
        return batchId;
    }

    public void setBatchId(Long batchId) {
        this.batchId = batchId;
    }


    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<RedPackageItem> getRedPackageItemList() {
        return redPackageItemList;
    }

    public void setRedPackageItemList(List<RedPackageItem> redPackageItemList) {
        this.redPackageItemList = redPackageItemList;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public static class RedPackageItem {
        private String name;
        private Double amount;
        private String time;
        private Integer index;

        private String key;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Double getAmount() {
            return amount;
        }

        public void setAmount(Double amount) {
            this.amount = amount;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getKey() {
            return "_"+amount+"_"+time;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public Integer getIndex() {
            return index;
        }

        public void setIndex(Integer index) {
            this.index = index;
        }
    }

}
